import type { Config } from 'tailwindcss';

export default {
  darkMode: 'class',
  content: [
    './node_modules/@why/components/dist/**/*.{js,ts,jsx,tsx}',
    './index.html',
    './src/**/*.{vue,js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {
      colors: {
        warning: '#FAAD14',
        danger: '#FF0202',
      },
      height: {
        header: 'var(--height-header)',
        'dvh-header': 'calc(100dvh - var(--height-header))',
      },
      minHeight: {
        'dvh-header': 'calc(100dvh - var(--height-header))',
      },
      animation: {
        flow: 'flow 8s ease-in-out infinite',
        glow: 'glow 2s ease-in-out infinite',
      },
      keyframes: {
        flow: {
          '0%, 100%': {
            'background-size': '200% 200%',
            'background-position': 'left center',
          },
          '50%': {
            'background-size': '200% 200%',
            'background-position': 'right center',
          },
        },
        glow: {
          '0%, 100%': {
            boxShadow: '0 0 8px rgba(0, 89, 76, 0.3)',
          },
          '50%': {
            boxShadow: '0 0 12px rgba(0, 89, 76, 0.5)',
          },
        },
      },
    },
  },
  plugins: [],
} satisfies Config;
